agents.anac.y2010.Southampton.analysis
Class BidSpace

java.lang.Object
  extended by agents.anac.y2010.Southampton.analysis.BidSpace

public class BidSpace
extends java.lang.Object


Nested Class Summary
 class BidSpace.EvaluatedDiscreteCombination
           
 
Constructor Summary
BidSpace(UtilitySpace space)
          Build the bid space based on a utility space.
 
Method Summary
 double getBeta(java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory, double time, double utility0, double utility1)
           
 double getBeta(java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory, double time, double utility0, double utility1, double minDiscounting, double minBeta, double maxBeta, double defaultBeta, double ourTime, double opponentTime)
           
static java.util.ArrayList<int[]> getCombinationValues(int[] space)
          Get all combinations of integers in a space.
 java.util.ArrayList<java.lang.Double> getContinuousWeights()
           
 int getDiscreteCombinationsCount()
           
 java.util.ArrayList<java.lang.Double> getDiscreteWeights()
           
 Bid getMaxUtilityBid()
           
 double[] getPoint(Bid bid)
          Get the point in multi-dimensional space that represents a bid.
 boolean isContinuousWeightsZero()
           
 java.util.ArrayList<Bid> Project(double[] pointToProject, double utility, int limit, UtilitySpace utilitySpace, OpponentModel opponentModel)
          Project a point onto an iso-utility space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidSpace

public BidSpace(UtilitySpace space)
         throws java.lang.Exception
Build the bid space based on a utility space.

Parameters:
space - the utility space.
Throws:
java.lang.Exception
Method Detail

getContinuousWeights

public java.util.ArrayList<java.lang.Double> getContinuousWeights()
Returns:
the continuousWeights

getDiscreteCombinationsCount

public int getDiscreteCombinationsCount()
Returns:
the count of discreteCombinations

isContinuousWeightsZero

public boolean isContinuousWeightsZero()
Returns:
the continuousWeightsZero

getDiscreteWeights

public java.util.ArrayList<java.lang.Double> getDiscreteWeights()
Returns:
the discreteWeights

getBeta

public double getBeta(java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory,
                      double time,
                      double utility0,
                      double utility1)

getBeta

public double getBeta(java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory,
                      double time,
                      double utility0,
                      double utility1,
                      double minDiscounting,
                      double minBeta,
                      double maxBeta,
                      double defaultBeta,
                      double ourTime,
                      double opponentTime)

Project

public java.util.ArrayList<Bid> Project(double[] pointToProject,
                                        double utility,
                                        int limit,
                                        UtilitySpace utilitySpace,
                                        OpponentModel opponentModel)
Project a point onto an iso-utility space.

Parameters:
pointToProject - the point to project.
utility - the utility of the iso-utility space.
opponentModel -
utilitySpace -
Returns:
an array list of bids that lie closest to the point (for all combinations of discrete values) and have the given utility.

getCombinationValues

public static java.util.ArrayList<int[]> getCombinationValues(int[] space)
Get all combinations of integers in a space.

Parameters:
space - the size of the space.
Returns:
all combinations of integers in a space.

getPoint

public double[] getPoint(Bid bid)
Get the point in multi-dimensional space that represents a bid.

Parameters:
bid - the bid.
Returns:
the point in multi-dimensional space that represents a bid.

getMaxUtilityBid

public Bid getMaxUtilityBid()